export const mutations = {
    putItemInTabs(state, item) {
        state.tabs.push(item)
    },
    setTab(state, tab) {
        state.tab = tab
    },
    setKeys(state, keys) {
        console.log('keys', keys)
        state.keys = keys
    },
    setTableData(state, tb_data) {
        console.log('tb_data', tb_data)
        state.tableData = tb_data
    },
    setUser(state, user) {
        state.user = user
    },
    setCurPage(state, page) {
        console.log(1)
        state.tableData.current = page
    },
    setPageName(state, name) {
        state.pageName = name
    },
    setToken(state,token){
        state.token=token
    },
    setIndexData(state,data){
        console.log(data)
        state.index_data=data

    }
}